<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>入职流程 - 招聘APP</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background-color: #f9f9f9;
            height: 100vh;
        }
        .app-container {
            max-width: 390px;
            height: 100%;
            margin: 0 auto;
            background-color: white;
        }
        .header {
            padding: 15px;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background-color: white;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        .company-info {
            display: flex;
            align-items: center;
            padding: 15px;
            border-bottom: 1px solid #f0f0f0;
        }
        .company-logo {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            object-fit: cover;
            margin-right: 15px;
        }
        .company-name {
            font-weight: 600;
            font-size: 18px;
            margin-bottom: 5px;
        }
        .company-position {
            color: #666;
            font-size: 14px;
        }
        .progress-container {
            padding: 20px 15px;
            border-bottom: 1px solid #f0f0f0;
        }
        .progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        .progress-title {
            font-weight: 600;
            font-size: 16px;
        }
        .progress-status {
            font-size: 14px;
            color: #1677ff;
        }
        .progress-bar {
            height: 6px;
            background-color: #f0f0f0;
            border-radius: 3px;
            overflow: hidden;
            margin-bottom: 10px;
        }
        .progress-fill {
            height: 100%;
            background-color: #1677ff;
            border-radius: 3px;
        }
        .progress-steps {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: #999;
        }
        .steps-container {
            padding: 20px 15px;
        }
        .step-item {
            display: flex;
            margin-bottom: 25px;
            position: relative;
        }
        .step-item:last-child {
            margin-bottom: 0;
        }
        .step-item::before {
            content: '';
            position: absolute;
            top: 30px;
            left: 15px;
            width: 1px;
            height: calc(100% - 15px);
            background-color: #e0e0e0;
            z-index: 1;
        }
        .step-item:last-child::before {
            display: none;
        }
        .step-icon {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #f0f0f0;
            color: #999;
            margin-right: 15px;
            position: relative;
            z-index: 2;
        }
        .step-item.completed .step-icon {
            background-color: #1677ff;
            color: white;
        }
        .step-item.current .step-icon {
            background-color: white;
            color: #1677ff;
            border: 2px solid #1677ff;
        }
        .step-content {
            flex: 1;
        }
        .step-title {
            font-weight: 600;
            font-size: 16px;
            margin-bottom: 5px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .step-status {
            font-size: 12px;
            padding: 2px 8px;
            border-radius: 10px;
        }
        .step-status.completed {
            background-color: #e6f7ff;
            color: #1677ff;
        }
        .step-status.current {
            background-color: #fff7e6;
            color: #fa8c16;
        }
        .step-status.pending {
            background-color: #f5f5f5;
            color: #999;
        }
        .step-description {
            font-size: 14px;
            color: #666;
            margin-bottom: 10px;
        }
        .step-action {
            background-color: #1677ff;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 8px 15px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s;
        }
        .step-action:hover {
            background-color: #0e5ecc;
        }
        .step-action.disabled {
            background-color: #f5f5f5;
            color: #999;
            cursor: not-allowed;
        }
        .document-card {
            display: flex;
            align-items: center;
            padding: 10px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            margin-top: 10px;
        }
        .document-icon {
            width: 40px;
            height: 40px;
            background-color: #f5f5f5;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #1677ff;
            margin-right: 10px;
        }
        .document-info {
            flex: 1;
        }
        .document-name {
            font-size: 14px;
            font-weight: 500;
        }
        .document-size {
            font-size: 12px;
            color: #999;
        }
        .document-action {
            padding: 5px 10px;
            border-radius: 4px;
            background-color: #f5f5f5;
            color: #666;
            font-size: 12px;
            cursor: pointer;
        }
        .bottom-nav {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-around;
            padding: 15px 0;
            background-color: white;
            border-top: 1px solid #eee;
        }
        .bottom-nav a {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #666;
            text-decoration: none;
            font-size: 12px;
        }
        .bottom-nav a i {
            font-size: 20px;
            margin-bottom: 5px;
        }
        .bottom-nav a.active {
            color: #1677ff;
        }
        .contract-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 100;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
        }
        .contract-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        .contract-container {
            width: 90%;
            max-width: 350px;
            max-height: 80vh;
            background-color: white;
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .contract-header {
            padding: 15px;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .contract-title {
            font-weight: 600;
            font-size: 18px;
        }
        .contract-close {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #f5f5f5;
            cursor: pointer;
        }
        .contract-body {
            padding: 15px;
            flex: 1;
            overflow-y: auto;
        }
        .contract-content {
            font-size: 14px;
            line-height: 1.6;
            color: #333;
        }
        .contract-footer {
            padding: 15px;
            border-top: 1px solid #eee;
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }
        .contract-btn {
            padding: 8px 15px;
            border-radius: 4px;
            font-size: 14px;
            cursor: pointer;
        }
        .contract-btn.cancel {
            background-color: #f5f5f5;
            color: #666;
        }
        .contract-btn.confirm {
            background-color: #1677ff;
            color: white;
        }
        .signature-pad {
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            margin-top: 15px;
            height: 150px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #f9f9f9;
            position: relative;
        }
        .signature-pad img {
            max-width: 100%;
            max-height: 100%;
        }
        .signature-placeholder {
            color: #999;
            font-size: 14px;
            text-align: center;
        }
        .signature-clear {
            position: absolute;
            top: 5px;
            right: 5px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background-color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: #666;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
    </style>
</head>
<body>
    <div class="app-container relative">
        <div class="header">
            <div class="flex items-center">
                <a href="chat.html" class="mr-2">
                    <i class="fas fa-arrow-left"></i>
                </a>
                <h1 class="text-xl font-bold">入职流程</h1>
            </div>
            <button class="p-2">
                <i class="fas fa-ellipsis-h text-gray-600"></i>
            </button>
        </div>
        
        <div class="company-info">
            <img src="https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mnx8Y29tcGFueXxlbnwwfHwwfHw%3D&auto=format&fit=crop&w=100&h=100&q=80" alt="科技智联" class="company-logo">
            <div>
                <h2 class="company-name">科技智联</h2>
                <p class="company-position">前端开发工程师</p>
            </div>
        </div>
        
        <div class="progress-container">
            <div class="progress-header">
                <h3 class="progress-title">入职进度</h3>
                <span class="progress-status">3/6 步骤</span>
            </div>
            <div class="progress-bar">
                <div class="progress-fill" style="width: 50%;"></div>
            </div>
            <div class="progress-steps">
                <span>开始</span>
                <span>进行中</span>
                <span>完成</span>
            </div>
        </div>
        
        <div class="steps-container">
            <!-- 步骤1：资料提交 -->
            <div class="step-item completed">
                <div class="step-icon">
                    <i class="fas fa-check"></i>
                </div>
                <div class="step-content">
                    <div class="step-title">
                        <span>资料提交</span>
                        <span class="step-status completed">已完成</span>
                    </div>
                    <p class="step-description">提交个人基本信息、身份证、学历证明等资料</p>
                    <div class="document-card">
                        <div class="document-icon">
                            <i class="far fa-file-alt"></i>
                        </div>
                        <div class="document-info">
                            <div class="document-name">个人资料表.pdf</div>
                            <div class="document-size">已上传</div>
                        </div>
                        <div class="document-action">查看</div>
                    </div>
                </div>
            </div>
            
            <!-- 步骤2：背景调查 -->
            <div class="step-item completed">
                <div class="step-icon">
                    <i class="fas fa-check"></i>
                </div>
                <div class="step-content">
                    <div class="step-title">
                        <span>背景调查</span>
                        <span class="step-status completed">已完成</span>
                    </div>
                    <p class="step-description">公司将对您的工作经历和教育背景进行核实</p>
                </div>
            </div>
            
            <!-- 步骤3：合同签署 -->
            <div class="step-item current">
                <div class="step-icon">
                    <i class="fas fa-pen"></i>
                </div>
                <div class="step-content">
                    <div class="step-title">
                        <span>合同签署</span>
                        <span class="step-status current">进行中</span>
                    </div>
                    <p class="step-description">签署劳动合同、保密协议和竞业禁止协议</p>
                    <button class="step-action" id="sign-contract-btn">签署合同</button>
                </div>
            </div>
            
            <!-- 步骤4：入职培训 -->
            <div class="step-item">
                <div class="step-icon">
                    <i class="fas fa-book"></i>
                </div>
                <div class="step-content">
                    <div class="step-title">
                        <span>入职培训</span>
                        <span class="step-status pending">待完成</span>
                    </div>
                    <p class="step-description">完成公司文化、规章制度和业务知识培训</p>
                    <button class="step-action disabled">开始培训</button>
                </div>
            </div>
            
            <!-- 步骤5：系统账号 -->
            <div class="step-item">
                <div class="step-icon">
                    <i class="fas fa-user-circle"></i>
                </div>
                <div class="step-content">
                    <div class="step-title">
                        <span>系统账号</span>
                        <span class="step-status pending">待完成</span>
                    </div>
                    <p class="step-description">设置公司邮箱、内部系统和开发环境账号</p>
                </div>
            </div>
            
            <!-- 步骤6：入职确认 -->
            <div class="step-item">
                <div class="step-icon">
                    <i class="fas fa-flag-checkered"></i>
                </div>
                <div class="step-content">
                    <div class="step-title">
                        <span>入职确认</span>
                        <span class="step-status pending">待完成</span>
                    </div>
                    <p class="step-description">确认入职日期，完成所有入职流程</p>
                </div>
            </div>
        </div>
        
        <!-- 移除底部导航 -->
        
        <!-- 合同签署弹窗 -->
        <div class="contract-overlay" id="contract-overlay">
            <div class="contract-container">
                <div class="contract-header">
                    <div class="contract-title">劳动合同</div>
                    <div class="contract-close" id="contract-close">
                        <i class="fas fa-times"></i>
                    </div>
                </div>
                <div class="contract-body">
                    <div class="contract-content">
                        <h3 class="text-lg font-bold mb-4">劳动合同</h3>
                        <p class="mb-2">甲方：科技智联有限公司</p>
                        <p class="mb-2">乙方：张伟</p>
                        <p class="mb-4">根据《中华人民共和国劳动法》和《中华人民共和国劳动合同法》等法律、法规、规章的规定，甲乙双方在平等自愿、协商一致的基础上，签订本劳动合同，共同遵守本合同所列条款。</p>
                        
                        <h4 class="text-base font-bold mb-2">第一条 合同期限</h4>
                        <p class="mb-4">本合同期限为3年，自2023年7月1日起至2026年6月30日止。其中试用期为3个月，自2023年7月1日起至2023年9月30日止。</p>
                        
                        <h4 class="text-base font-bold mb-2">第二条 工作内容</h4>
                        <p class="mb-4">乙方的工作岗位为前端开发工程师，工作内容为负责公司产品的前端开发工作，包括但不限于界面设计、功能实现、性能优化等。</p>
                        
                        <h4 class="text-base font-bold mb-2">第三条 工作时间</h4>
                        <p class="mb-4">甲方实行每周5天，每天8小时的标准工时制。</p>
                        
                        <h4 class="text-base font-bold mb-2">第四条 劳动报酬</h4>
                        <p class="mb-4">乙方试用期月工资为20,000元，试用期满月工资为25,000元。甲方于每月10日前以银行转账方式支付上月工资。</p>
                        
                        <h4 class="text-base font-bold mb-2">第五条 社会保险和福利</h4>
                        <p class="mb-4">甲方依法为乙方缴纳社会保险和住房公积金。甲方为乙方提供的福利包括但不限于年终奖金、带薪年假、节日福利等。</p>
                        
                        <h4 class="text-base font-bold mb-2">第六条 劳动保护和劳动条件</h4>
                        <p class="mb-4">甲方为乙方提供符合国家规定的劳动安全卫生条件和必要的劳动防护用品，对乙方进行劳动安全卫生教育。</p>
                        
                        <h4 class="text-base font-bold mb-2">第七条 合同变更、解除和终止</h4>
                        <p class="mb-4">本合同的变更、解除和终止，按照《中华人民共和国劳动合同法》的有关规定执行。</p>
                        
                        <p class="mt-8">甲方（盖章）：</p>
                        <p class="mb-8">日期：</p>
                        
                        <p>乙方（签字）：</p>
                        <div class="signature-pad" id="signature-pad">
                            <div class="signature-placeholder">
                                <p>点击此处签名</p>
                                <p><i class="fas fa-pen"></i></p>
                            </div>
                            <img src="" alt="签名" id="signature-img" style="display: none;">
                            <div class="signature-clear" id="signature-clear" style="display: none;">
                                <i class="fas fa-times"></i>
                            </div>
                        </div>
                        <p>日期：2023年6月15日</p>
                    </div>
                </div>
                <div class="contract-footer">
                    <button class="contract-btn cancel" id="contract-cancel">取消</button>
                    <button class="contract-btn confirm" id="contract-confirm" disabled>确认签署</button>
                </div>
            </div>
        </div>
    </div>

    <script>
        // 合同签署功能
        const signContractBtn = document.getElementById('sign-contract-btn');
        const contractOverlay = document.getElementById('contract-overlay');
        const contractClose = document.getElementById('contract-close');
        const contractCancel = document.getElementById('contract-cancel');
        const contractConfirm = document.getElementById('contract-confirm');
        const signaturePad = document.getElementById('signature-pad');
        const signatureImg = document.getElementById('signature-img');
        const signatureClear = document.getElementById('signature-clear');
        const signaturePlaceholder = document.querySelector('.signature-placeholder');
        
        // 打开合同弹窗
        signContractBtn.addEventListener('click', () => {
            contractOverlay.classList.add('active');
        });
        
        // 关闭合同弹窗
        contractClose.addEventListener('click', () => {
            contractOverlay.classList.remove('active');
        });
        
        contractCancel.addEventListener('click', () => {
            contractOverlay.classList.remove('active');
        });
        
        // 签名功能
        signaturePad.addEventListener('click', () => {
            // 模拟签名上传
            signatureImg.src = 'https://images.unsplash.com/photo-1600880292203-757bb62b4baf?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mnx8c2lnbmF0dXJlfGVufDB8fDB8fA%3D%3D&auto=format&fit=crop&w=300&q=80';
            signatureImg.style.display = 'block';
            signaturePlaceholder.style.display = 'none';
            signatureClear.style.display = 'block';
            contractConfirm.disabled = false;
        });
        
        // 清除签名
        signatureClear.addEventListener('click', (e) => {
            e.stopPropagation();
            signatureImg.src = '';
            signatureImg.style.display = 'none';
            signaturePlaceholder.style.display = 'block';
            signatureClear.style.display = 'none';
            contractConfirm.disabled = true;
        });
        
        // 确认签署
        contractConfirm.addEventListener('click', () => {
            // 更新步骤状态
            const currentStep = document.querySelector('.step-item.current');
            currentStep.classList.remove('current');
            currentStep.classList.add('completed');
            
            const stepIcon = currentStep.querySelector('.step-icon');
            stepIcon.innerHTML = '<i class="fas fa-check"></i>';
            
            const stepStatus = currentStep.querySelector('.step-status');
            stepStatus.textContent = '已完成';
            stepStatus.classList.remove('current');
            stepStatus.classList.add('completed');
            
            const nextStep = currentStep.nextElementSibling;
            nextStep.classList.add('current');
            
            const nextStepStatus = nextStep.querySelector('.step-status');
            nextStepStatus.textContent = '进行中';
            nextStepStatus.classList.remove('pending');
            nextStepStatus.classList.add('current');
            
            const nextStepBtn = nextStep.querySelector('.step-action');
            if (nextStepBtn) {
                nextStepBtn.classList.remove('disabled');
            }
            
            // 更新进度条
            const progressFill = document.querySelector('.progress-fill');
            progressFill.style.width = '67%';
            
            const progressStatus = document.querySelector('.progress-status');
            progressStatus.textContent = '4/6 步骤';
            
            // 关闭弹窗
            contractOverlay.classList.remove('active');
        });
    </script>
</body>
</html> 